#
CXXFLAGS = -time -O3 -DNDEBUG
.SUFFIXES: .cpp .h .o
# Create a list of source files.
SOURCES  = $(shell ls *.cpp)
TARGET=app
OBJECTS=$(SOURCES:%.cpp=%.o)

all: $(TARGET)
$(OBJECTS): $(SOURCES)
$(TARGET): $(OBJECTS)	
		$(CXX) $(SOURCES) `fltk-config --cxxflags --ldflags --use-images` -o $(TARGET)

clean:
		$(RM) $(OBJECTS) $(TARGET)

.PHONY: all clean
